<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="../Main/top.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!--  
<script type="text/javascript">
/*<![CDATA[*/
Validator.setup({
	form : 'demo',
	configs : 'json,tag',
	json : {    
        url : 'roles.json'   //指定JSON文件的路径   
    },  
	warns : 'class,follow',
	ignoreOldEvent : true
});
/*]]>*/
</script>
-->
<script type="text/javascript" >
  var operIdArray = new Array();
  <s:iterator value="listChecked" status="stat" id="str">
	operIdArray[<s:property value="#stat.getIndex()"/>] = <s:property value="str" />;
  </s:iterator>
</script>
<script type="text/javascript" src="Roles.js"></script>
<div class="function_title"><span class="t2"><img src="../images/dqwz.gif">当前位置：编辑角色</span></div>
<div class="function_content">

<div class="addItem"><img src="../images/return_icon.png"><a href="listRoles.action?intercept=1">返回列表</a></div>

<span class="important_info">注：带*项为必填信息!</span>
<form action="updateRoles.action" method="post" id="demo" >
<s:hidden name="roles.rolesId"></s:hidden>
<input type="hidden" name="roles.operCollection" id ="roles.operCollection">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="loginTable">
    <tr>
      <td width="14%" align="right" class="leftBg"><span class="important_info">*</span>角色名称：</td>
      <td width="86%"><s:textfield name="roles.roleName"></s:textfield>
</td>
    </tr>
    <tr>
      <td align="right" class="leftBg">角色描述：</td>
      <td><s:textarea name="roles.remark" rows="5" cols="60"></s:textarea></textarea>
</td>
    </tr>
    <tr>
      <td align="right" class="leftBg"><span class="important_info">*</span>可选模块列表：</td>
		<td>
        <select multiple="multiple" name="operIdList" id="operIdList" onchange="checkSelectList();" class="multiple_select"></select>
        </td>    
	</tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td>
        <input type="submit" name="submit" id="submit" value="提交" class="deal_button" >
        <input type="reset" name="reset" id="reset" value="重置" class="deal_button">
      </td>
    </tr>
  </table>
</form>

</div>

<%@ include file="../Main/bottom.jsp"%>

